bit_field
A simple crate which provides the BitField
trait, which provides methods for operating on individual bits and ranges
of bits on Rust's integral types.
Documentation
Documentation is available on docs.rs
Usage
[]
= "0.10.1"
Example
extern crate bit_field;
use BitField;
let mut x: u8 = 0;
x.set_bit;
assert_eq!;
x.set_bits;
assert_eq!;
License
This crate is dual-licensed under MIT or the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.